package com.samebuilding.service.impl;

import java.util.List;

import com.samebuilding.dao.ProvinceDAO;
import com.samebuilding.domain.Province;
import com.samebuilding.service.ProvinceService;

public class ProvinceServiceImpl implements ProvinceService{

	ProvinceDAO provinceDAO;
	public ProvinceDAO getProvinceDAO() {
		return provinceDAO;
	}
	public void setProvinceDAO(ProvinceDAO provinceDAO) {
		this.provinceDAO = provinceDAO;
	}
	public List findAll() {
		
		return provinceDAO.findAll();
	}
	public int findCode(String name) {
		return provinceDAO.findCode(name);
	}
	public String findName(int code) {
		return provinceDAO.findName(code);
	}
}
